﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductAdd.ascx.cs" Inherits="Admin_Product_ProductAdd" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>


<div class="tab_content">                                       
    <div class="formEl_b">	           
        <fieldset>
            <div class="clear"></div>
            <div class="left-field-product">
                <div class="section">
                    <asp:Label ID="lblLanguage" runat="server"></asp:Label>
                    <asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="True" onselectedindexchanged="ddlLanguage_SelectedIndexChanged"></asp:DropDownList>
                </div>
                <div class="section">
                    <asp:Label ID="lblCategory" runat="server"></asp:Label>
                    <asp:DropDownList ID="ddlCategory" runat="server"></asp:DropDownList>
                </div>
                <div class="section">   
                    <asp:Label ID="lblTrademark" runat="server"></asp:Label>
                    <asp:DropDownList ID="ddlTradeMark" runat="server"></asp:DropDownList>
                </div>
                
                <div class="section">
                    <asp:Label ID="lblImage" runat="server"></asp:Label>
                    <input id="iptImage1" runat="server" type="file" class="fileupload"/>
                </div>
                <div class="section">
                    <asp:Label ID="lblImage2" runat="server"></asp:Label>
                    <input id="iptImage2" runat="server" type="file" class="fileupload"/>
                </div>
                <div class="section">
                    <asp:Label ID="lblImg3" runat="server"></asp:Label>
                    <input id="iptImage3" runat="server" type="file" class="fileupload"/>
                </div>
                <div class="section">
                    <asp:Label ID="lblImg4" runat="server"></asp:Label>
                    <input id="iptImage4" runat="server" type="file" class="fileupload"/>
                </div>
                <div class="section">
                    <asp:Label ID="Img5" runat="server"></asp:Label>
                    <input id="iptImage5" runat="server" type="file" class="fileupload"/>
                </div>
            </div>

            <div class="right-field-product">
                <div class="section">
                    <asp:Label ID="lblProductCode" runat="server"></asp:Label>
                    <asp:TextBox ID="txtProductCode" runat="server" ValidationGroup="Input" CssClass="medium"></asp:TextBox><small class="note">*</small>
                </div>
                <div class="section">
                    <asp:Label ID="lblTitle" runat="server"></asp:Label>
                    <asp:TextBox ID="txtProductName" runat="server" ValidationGroup="Input" CssClass="medium"></asp:TextBox><small class="note">*</small>
                </div>
                <div class="section">
                    <asp:Label ID="lblSize" runat="server"></asp:Label>
                    <asp:TextBox ID="txtSize" runat="server" MaxLength="200" CssClass="medium"></asp:TextBox>
                </div>
                <div class="section numericonly"> 
                    <asp:Label ID="lblPrice" runat="server"></asp:Label>
                    <asp:TextBox ID="txtPrice" runat="server" CssClass="validate[required] small" MaxLength="10" ValidationGroup="Input"></asp:TextBox><small class="note">*</small>
                </div>
                <div class="section numericonly">
                    <asp:Label ID="lblPrice1" runat="server"></asp:Label>
                    <asp:TextBox ID="txtPriceMarket" runat="server" CssClass="validate[required] small" MaxLength="10" ValidationGroup="Input"></asp:TextBox><small class="note">VNĐ</small>
                </div>
                <div class="section">
                    <asp:Label ID="lblOriginal" runat="server"></asp:Label>
                    <asp:TextBox ID="txtOriginal" runat="server" CssClass="medium" MaxLength="200"></asp:TextBox>
                </div>
                <div class="section">
                    <asp:Label ID="lblMeterial" runat="server"></asp:Label>
                    <asp:DropDownList ID="ddlMaterial" runat="server"></asp:DropDownList>
                </div>
            </div>

            <br class="clear" />
            <div>&nbsp;</div>
            
            <div class="section" >
                <ul id="sortable">
                    <li class="albumImage" style="width:auto">
                        <div class="picHolder">
                            <asp:HyperLink ID="urlImg" runat="server" rel="glr"></asp:HyperLink>
                            <asp:Image ID="imgImage" runat="server" CssClass="size" />
                            <div class="picTitle" style="display: block;"><asp:Label ID="lbimg" runat="server"></asp:Label></div>
                        </div>
                    </li>
                    <li class="albumImage" style="width:auto">
                        <div class="picHolder">
                            <asp:HyperLink ID="urlImg1" runat="server" rel="glr"></asp:HyperLink>
                            <asp:Image ID="Image2" runat="server" CssClass="size" />
                            <div class="picTitle" style="display: block;"><asp:Label ID="lbimg1" runat="server"></asp:Label></div>
                        </div>
                    </li>
                    <li class="albumImage" style="width:auto">
                        <div class="picHolder">
                            <asp:HyperLink ID="urlImg2" runat="server" rel="glr"></asp:HyperLink>
                            <asp:Image ID="Image3" runat="server" CssClass="size" />
                            <div class="picTitle" style="display: block;"><asp:Label ID="lbimg2" runat="server"></asp:Label></div>
                        </div>
                    </li>
                    <li class="albumImage" style="width:auto" >
                        <div class="picHolder">
                            <asp:HyperLink ID="urlImg3" runat="server" rel="glr"></asp:HyperLink>
                            <asp:Image ID="Image4" runat="server" CssClass="size" />
                            <div class="picTitle" style="display: block;"><asp:Label ID="lbimg3" runat="server"></asp:Label></div>
                        </div>
                    </li>
                    <li class="albumImage" style="width:auto" >
                        <div class="picHolder">
                            <asp:HyperLink ID="urlImg4" runat="server" rel="glr"></asp:HyperLink>
                            <asp:Image ID="Image5" runat="server" CssClass="size" />
                            <div class="picTitle" style="display: block;"><asp:Label ID="lbimg4" runat="server"></asp:Label></div>
                        </div>
                    </li>
                </ul>
            </div>



            <div>
                <ul>
                    <li ><asp:Label ID="lblColor" runat="server" CssClass="text-lbl" Width="11%"></asp:Label></li>
                    <asp:Repeater ID="rptColor" runat="server" OnItemDataBound="rptColor_ItemDataBound">
                        <ItemTemplate>
                            <li>
                                <asp:Label ID="lblColorID" runat="server" Visible="false"></asp:Label>     
                                <input type="checkbox"  id="chkColor"  class="ck" runat="server"/>
                                <asp:Label ID="lblchkColor" runat="server" Text="Label" CssClass="text-lbl"></asp:Label>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
                   
            </div>
            <div class="clear"></div>
            <div class="section" style="padding-top:10px;">
                <asp:Label ID="lblTutorial" runat="server" Width="12.5%"></asp:Label>
                <input id="iptGuine" runat="server" type="file" class="fileupload" />
                <small style="padding-left:10px;"><asp:HyperLink ID="lblAttacheFile" runat="server"></asp:HyperLink></small>  
            </div>

             <div class="section">
                <asp:Label ID="lblDescription" runat="server"></asp:Label>
            </div>
            <div class="section">
                <asp:TextBox ID="txtProductDescription" runat="server" TextMode="MultiLine" CssClass="full"></asp:TextBox>
            </div>
            <div class="section">
                <asp:Label ID="lblSpecifiaion" runat="server" ></asp:Label>
            </div>
            <div >
                <CKEditor:CKEditorControl ID="txtcontent" runat="server" Width="95.6%"></CKEditor:CKEditorControl>
            </div>

            <div class="section">
            <asp:Label ID="lblTag" runat="server"></asp:Label>
            </div>
            <div class="section">
                <asp:TextBox ID="txtTag" runat="server"  CssClass="large"></asp:TextBox>
            </div>
            <div class="section numericonly" >
            <asp:Label ID="lblPriority" runat="server" Width="10%"></asp:Label>
            <asp:TextBox ID="txtPriority" runat="server" CssClass="validate[required] smalls"></asp:TextBox>
            </div>
            <div>
                <ul>
                    <li>
                        <input type="checkbox"  id="chkActive"  class="ck" runat="server" checked="checked"/>
                        <asp:Label ID="lbleActive" runat="server" Text="Label" CssClass="text-lbl"></asp:Label>
                    </li>
                    
                    <li>
                        
                        <input type="checkbox"  id="chkBestSeller"  class="ck" runat="server" checked="checked"/>
                        <asp:Label ID="lblBestSeller" runat="server" Text="Label" CssClass="text-lbl"></asp:Label>
                    </li>
                </ul>
            </div>
            <div class="clear"></div>
            <div>&nbsp;</div>
            <div class="section">
                <asp:LinkButton ID="btnSave" runat="server" onclick="btnSave_Click1" CssClass="uibutton" ValidationGroup="Input"></asp:LinkButton>
                <asp:LinkButton ID="btnCancel" runat="server" CssClass="uibutton special" onclick="btnCancel_Click"></asp:LinkButton>       
          
            </div>
        </fieldset>
    </div>
</div>    


<asp:RequiredFieldValidator ID="rfvProductName" runat="server" SetFocusOnError="true" ControlToValidate="txtProductName" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvProductcode" runat="server" SetFocusOnError="true" ControlToValidate="txtProductCode" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvPrice" runat="server" SetFocusOnError="true" ControlToValidate="txtPrice" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<%--<asp:RegularExpressionValidator ID="revPrice" runat="server" ControlToValidate="txtPrice" Display="None" ValidationGroup="Input" Text="*" ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>--%>
<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />
